#include <iostream>
#include <fstream>
using namespace std;
int main()
{
    ifstream ifile("poems.txt");
    char line[256];
    int N = 0;
    ifile>>N;
    cout<<N<<endl;
    ifile.ignore();
    while(true)
    {
        ifile.getline(line,256);
        if(strlen(line) >0)
            cout<<line<<endl;
        else
            break;
    }
    ifile.close();
}